home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9586 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.lyseo.otol.fi!calvin!not-for-mail
  2. From: mjr@lyseo.otol.fi (Mikko Rauhala)
  3. Newsgroups: comp.lang.c,comp.unix.programmer,comp.os.linux.development.apps
  4. Subject: Re: HELP: I/O via LPT1:
  5. Followup-To: comp.lang.c,comp.unix.programmer,comp.os.linux.development.apps
  6. Date: 11 Mar 1996 21:39:49 GMT
  7. Organization: Oulun Lyseon Lukio
  8. Message-ID: <4i26j5$vg5@hobbes.lyseo.otol.fi>
  9. References: <Do2nMH.5A1@ecf.toronto.edu>
  10. NNTP-Posting-Host: calvin.lyseo.otol.fi
  11. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  12.  
  13. BREWSTER  NEIL VINAY (brewste@ecf.toronto.edu) wrote:
  14. : Does anyone know the equivalent of inport() and outport()?
  15.  
  16. inb and outb, and additionally you must get io permissions to the 
  17. necessary port using ioperm or iopl. This is a dirty way to make it work, 
  18. however. Also, getting io permissions requires the process to be run as 
  19. root. If you only want to make it work somehow, this is the wasy way, if 
  20. you want to make it work cleanly, you write a kernel driver ;)
  21.  
  22. : Alternatively - is there a way to embed assembler code in a C program?
  23.  
  24. This too is possible - see gcc info pages - but also requires io 
  25. permissions, of course.
  26.  
  27.     - Mjr
  28.  
  29. Mikko Rauhala
  30. mjr@lyseo.otol.fi
  31. http://www.lyseo.otol.fi/~mjr
  32. 'nuff said
  33.